package com.fj.netty.chat.protocol;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * 自定义帧解码器
 * @author fj
 * @date 2024/1/11 14:16
 */
public class MessageLengthFieldDecoder extends LengthFieldBasedFrameDecoder {
    public MessageLengthFieldDecoder(){
        this(1024,12,4);
    }
    public MessageLengthFieldDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength,0,0);
    }
}
